<?php


namespace app\game\node;


class AbsNode implements INode
{
    /**
     * 所在行
     * @var int
     */
    protected $row;

    /**
     * 所在列
     * @var int
     */
    protected $col;

    /**
     * @param int $col
     */
    public function setCol($col)
    {
        $this->col = $col;
    }

    /**
     * @param int $row
     */
    public function setRow($row)
    {
        $this->row = $row;
    }

    /**
     * @return int
     */
    public function getCol()
    {
        return $this->col;
    }

    /**
     * @return int
     */
    public function getRow()
    {
        return $this->row;
    }

    public function __construct($row, $col)
    {
        $this->setCol($col);
        $this->setRow($row);
    }

    public function show()
    {
        echo 'x';
    }
}